package com.my.concurrency.virtualthread;

/**
 * @author: marshal
 * @date: 2023-11-13 11:56
 */
public class VirtualThreadDemo {
    public static void main(String[] args) {

        Thread thread = Thread.startVirtualThread(() -> {
            for (int i = 0; i < 10; i++) {
                System.out.println("this is " + i);
            }
        });
    }
}
